
# php 路径，请按需调整
phpbin=php
# phpbin=/d/xampp/php/php.exe

test1=`curl http://127.0.0.1:8555 -s | wc -c`
if [ $test1 -lt 10 ]
then
    $phpbin -S 127.0.0.1:8555 -t ./client/ &
fi

test2=`curl http://127.0.0.1:8666 -s | wc -c`
if [ $test1 -lt 10 ]
then
    $phpbin -S 127.0.0.1:8666 -t ./server/ &
fi

echo "visit for test: http://127.0.0.1:8555"
